﻿using FanaticRock.Theme.Enums;
using System.Windows;
using System.Windows.Controls;

namespace FanaticRock.Theme.Custom
{
    ///<summary>通知卡片控件。</summary>
    public class NoticeCard : Control
    {

        #region dp props

        public string Title { get { return (string)GetValue(TitleProperty); } set { SetValue(TitleProperty, value); } }

        // Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(NoticeCard), new PropertyMetadata(string.Empty));

        public string Content { get { return (string)GetValue(ContentProperty); } set { SetValue(ContentProperty, value); } }

        public static readonly DependencyProperty ContentProperty = DependencyProperty.Register("Content", typeof(string), typeof(NoticeCard), new PropertyMetadata(string.Empty));

        public NoticeEnum NoticeType { get { return (NoticeEnum)GetValue(NoticeTypeProperty); } set { SetValue(NoticeTypeProperty, value); } }

        public static readonly DependencyProperty NoticeTypeProperty = DependencyProperty.Register("NoticeType", typeof(NoticeEnum), typeof(NoticeCard), new PropertyMetadata(NoticeEnum.Defualt));

        #endregion
    }
}
